package com.itheima.d1_Api_Thread;

/**
 * Api:
 *      1.Thread.sleep()//静态方法
 */
public class demo2 {
    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 6; i++) {
            System.out.println("mainThread :"+i);
            if(i==3){
                Thread.sleep(3000);
            }
        }
    }
}
